<extend name="Base:block" />
<block name="title"><title>编辑菜单</title></block>
<block name="seo"></block>
<block name="operation_nav">
    <ul class="operation_nav">
        <li class="none"><a href="{:U('Admin/Menu/index')}">后台菜单列表</a></li>
        <li class="none"><a href="{:U('Admin/Menu/index')}">添加菜单</a></li>
    </ul>   
</block>
<block name="main_content">
    <form method="post" class="form-horizontal" action="__SELF__">
    <div class="form-group"><label class="col-sm-2 control-label">菜单名称</label>
        <div class="col-sm-4"><input type="text" name="name" value="{$menu.name}" class="form-control"></div>
    </div>
    <div class="form-group"><label class="col-sm-2 control-label">上级菜单</label>

        <div class="col-sm-4">
            <select class="form-control m-b" name="parent">
                <option value="0">顶级菜单</option>
                <volist name="menuArr" id="vo">
                    <option value="{$vo.id}" <if condition="$vo.id eq $menu['parent']"> selected=""</if> >{$vo.title_show}</option>
                </volist>
            </select>
        </div>
    </div>
    <div class="form-group"><label class="col-sm-2 control-label">菜单URL</label>
        <div class="col-sm-4">
            <input type="text" name="url" class="form-control" value="{$menu.url}">
        </div>
    </div>
    <div class="form-group"><label class="col-sm-2 control-label">菜单说明</label>
        <div class="col-sm-4">
            <input type="text" name="description" class="form-control" value="{$menu.description}">
        </div>
    </div>
    <div class="form-group"><label class="col-sm-2 control-label">菜单排序</label>
        <div class="col-sm-2">
            <input type="text" name="sort"  class="form-control" value="{$menu.sort}">
        </div>
    </div>
    <div class="form-group"><label class="col-sm-2 control-label">是否隐藏</label>

        <div class="col-sm-10">
          
            <div class="radio i-checks"><label> 
                <input type="radio" <if condition="$menu['status'] eq 0"> checked="checked" </if>value="1" name="status"> <i></i>是</label>
            </div>
            <div class="radio i-checks"><label> 
                <input type="radio" <if condition="$menu['status'] eq 1"> checked="checked" </if> value="0" name="status"> <i></i>否</label>
            </div>
        </div>
    </div>
    <input type="hidden"  name="id" class="form-control" value="{$Think.get.id}">

    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
            <button class="btn btn-primary" type="submit">保存</button>
        </div>
    </div>
</form>
</block>